home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 4 / developer source - volume 4.iso / dobbs / apr95 / char1t7.gif < prev    next >
Graphics Interchange Format  |  1996-01-09  |  82KB  |  504x323  |  8-bit (109 colors)
Labels: text | screenshot | font | document | number
OCR: 1st byte Must be zero. 2nd byte (24-bit) Indicates length (in bytes) of the rest of the record; must be a multiple of 3. 2nd byte (8-bit) Indicates length (in bytes) of the rest of the record; must be greater than 2. 2nd byte (4-bit) Indicates length (in pixels) of the rest of the record; must be greater than 2. Remaining bytes (24-bit) Every three bytes is another pixel's RGB value; if the total count of pixels is odd, an extra byte is appended for an even length overall. Remaining bytes (8-bit) Every byte is another pixel's color index; if the total count of pixels is odd, an extra byte is appended for an even length overall .. Remaining bytes (4-bit) Every byte represents two pixels' color indexes, the most- significant four bits being the first pixel's value and the least significant four bits, the next pixel's value. If the count of pixels is odd, the last four bits will contain Os; if the count of bytes is odd, an extra byte is appended for an even length overall. Table 7: Unencoded data record.